cfnumber.htmlHTMLudog"…πùΔ¢πùΔ¢ÅÅ™ Monkeybread Realbasic plugin - Documentation - CFNumber

MBS Plugin Documentation

This is the documentation for the Realbasic Plugins from Monkeybreadsoftware.de. You find these plugins and the newest version of this document at http://www.monkeybreadsoftware.de/realbasic inside the plugins section.

This help was last updated on Freitag, 6. September 2002 and covers 2136 items: 126 classes, 2 controls and 583 global functions.

The list of the themes Global methods by category Global methods by name The list of the classes The list of the controls

class CFNumber

class, CoreFoundation So, 21. Jul 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: A class for a core foundation number.
Notes:
Subclass of CFObject.
If the release property is true, the destructor of this class will release the number reference.

ByteSize as integer

method, CoreFoundation Di, 23. Jul 2002
Mac OS Classic: -> 0. Mac OS Carbon: Works. Windows: -> 0.
Function: Returns the size in bytes of the type of the number.

Compare(other as CFNumber) as integer

method, CoreFoundation Di, 23. Jul 2002
Mac OS Classic: -> 0. Mac OS Carbon: Works. Windows: -> 0.
Function: Compares two CFNumbers.
Notes:
Return values:
Less Than-1
Equal To0
Greater Than1

From CFNumber.h:

Compares the two CFNumber instances. If conversion of the types of the values is needed, the conversion and comparison follow human expectations and not C's promotion and comparison rules. Negative zero compares less than positive zero.
Positive infinity compares greater than everything except itself, to which it compares equal. Negative infinity compares less than everything except itself, to which it compares equal. Unlike standard practice, if both numbers are NaN, then they compare equal; if only one of the numbers is NaN, then the NaN compares greater than the other number if it is negative, and smaller than the other number if it is positive.

dValue as double

property, CoreFoundation So, 21. Jul 2002
Mac OS Classic: -> false. Mac OS Carbon: Works. Windows: -> false.
Function: The value of this CFNumber object.

isFloat as boolean

method, CoreFoundation Di, 23. Jul 2002
Mac OS Classic: -> false. Mac OS Carbon: Works. Windows: -> false.
Function: Returns TRUE if the type of the CFNumber's value is one of the defined floating point types.

iValue as integer

property, CoreFoundation So, 21. Jul 2002
Mac OS Classic: -> false. Mac OS Carbon: Works. Windows: -> false.
Function: The value of this CFNumber object.

NumberType as integer

method, CoreFoundation Di, 23. Jul 2002
Mac OS Classic: -> 0. Mac OS Carbon: Works. Windows: -> 0.
Function: Returns the storage format of the CFNumber's value.
Notes:
Possible values:
NameValueRealbasic Datatype
SInt81-
SInt162-
SInt323integer
SInt644-
Float325single
Float646double
Char7-
Short8-
Int9-
Long10integer
LongLong11-
Float12single
Double13double
CFIndex14integer

Contact

Written 2002 by Christian Schmitz. Feel free to ask or report mistakes to realbasic@macsw.de.
Thanks.

This resource fork intentionally left blank ˇˇ